package com.gmgx.dao;

import com.gmgx.entity.Blog;
import com.gmgx.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IBlogDao {
    List<Blog> queryAllBlog();
    List<Blog> queryAllBlog2();
    Blog queryBlogById(Integer blogId);

    Blog queryBlogById2(Integer blogId);
    List<Blog> queryBlogById3(@Param("id1") Integer id1,@Param("id2") Integer id2);
    List<Blog> queryBlogById4(@Param("id1") Integer id1,@Param("id2") Integer id2);

    boolean modifyBlog(Blog blog);
    boolean modifyUser(User user);

    List<Blog> queryBlogAndUserByBlogId(Integer blogId);
}
